package com.lanou3g.code0404.morning;

public class Main {
    public static void main(String[] args) {
        Table table = new Table();
        table.color = "红色";
        table.legCount = 3;
        table.show();

        Foo foo = new Foo();
        int a = 3;
        foo.fun(a, table);
        System.out.println("---->" + a);
        table.show();

        foo.fun2(table);
        table.show();

        String s = "Hello";//不需要真的写出new,直接把""里的
        //内容 赋值过去,就相当于new了
        foo.fun3(s);
        System.out.println(s);
    }
}
